/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.crossriver.crgis.database.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * This class is used by
 * {@link com.crossriver.crgis.database.service.http.Organisation_InformationServiceSoap}.
 * </p>
 *
 * @author    Wole Adetiba
 * @see       com.crossriver.crgis.database.service.http.Organisation_InformationServiceSoap
 * @generated
 */
public class Organisation_InformationSoap implements Serializable {
	public static Organisation_InformationSoap toSoapModel(
		Organisation_Information model) {
		Organisation_InformationSoap soapModel = new Organisation_InformationSoap();

		soapModel.setApplicationId(model.getApplicationId());
		soapModel.setUserId(model.getUserId());
		soapModel.setOrganisationName(model.getOrganisationName());
		soapModel.setNatureOfBusiness(model.getNatureOfBusiness());
		soapModel.setRegNo(model.getRegNo());
		soapModel.setCountryOfReg(model.getCountryOfReg());
		soapModel.setDateOfRegistration(model.getDateOfRegistration());

		return soapModel;
	}

	public static Organisation_InformationSoap[] toSoapModels(
		Organisation_Information[] models) {
		Organisation_InformationSoap[] soapModels = new Organisation_InformationSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static Organisation_InformationSoap[][] toSoapModels(
		Organisation_Information[][] models) {
		Organisation_InformationSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new Organisation_InformationSoap[models.length][models[0].length];
		}
		else {
			soapModels = new Organisation_InformationSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static Organisation_InformationSoap[] toSoapModels(
		List<Organisation_Information> models) {
		List<Organisation_InformationSoap> soapModels = new ArrayList<Organisation_InformationSoap>(models.size());

		for (Organisation_Information model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new Organisation_InformationSoap[soapModels.size()]);
	}

	public Organisation_InformationSoap() {
	}

	public String getPrimaryKey() {
		return _applicationId;
	}

	public void setPrimaryKey(String pk) {
		setApplicationId(pk);
	}

	public String getApplicationId() {
		return _applicationId;
	}

	public void setApplicationId(String applicationId) {
		_applicationId = applicationId;
	}

	public String getUserId() {
		return _userId;
	}

	public void setUserId(String userId) {
		_userId = userId;
	}

	public String getOrganisationName() {
		return _organisationName;
	}

	public void setOrganisationName(String organisationName) {
		_organisationName = organisationName;
	}

	public String getNatureOfBusiness() {
		return _natureOfBusiness;
	}

	public void setNatureOfBusiness(String natureOfBusiness) {
		_natureOfBusiness = natureOfBusiness;
	}

	public String getRegNo() {
		return _regNo;
	}

	public void setRegNo(String regNo) {
		_regNo = regNo;
	}

	public String getCountryOfReg() {
		return _countryOfReg;
	}

	public void setCountryOfReg(String countryOfReg) {
		_countryOfReg = countryOfReg;
	}

	public Date getDateOfRegistration() {
		return _dateOfRegistration;
	}

	public void setDateOfRegistration(Date dateOfRegistration) {
		_dateOfRegistration = dateOfRegistration;
	}

	private String _applicationId;
	private String _userId;
	private String _organisationName;
	private String _natureOfBusiness;
	private String _regNo;
	private String _countryOfReg;
	private Date _dateOfRegistration;
}